home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / archiver / ncmp424b.zoo / zmore < prev    next >
Text File  |  1993-03-06  |  319b  |  23 lines

  1. :
  2. #!/bin/sh
  3.  
  4. FIRST=1
  5. for FILE
  6. do
  7.     if test $FIRST -eq 0; then
  8.         echo "--More--(Next file: $FILE)\c"
  9.         stty cbreak -echo
  10.         ANS=`dd bs=1 count=1 2>/dev/null` 
  11.         stty -cbreak echo
  12.         echo " "
  13.         if test "$ANS" = 'e'; then
  14.             exit
  15.         fi
  16.     fi
  17.     echo "------> $FILE <------"
  18.     zcat $FILE | more
  19.     if test -t; then
  20.         FIRST=0
  21.     fi
  22. done
  23.